home *** CD-ROM | disk | FTP | other *** search
/ Champak 143 / (Vol 143) Nov 15 2011.iso / Games / cubic_shot_3.swf / scripts / frame_25 / DoAction.as
Text File  |  2011-11-15  |  18KB  |  641 lines

  1. function readyGame()
  2. {
  3.    blockArr = new Array();
  4.    var _loc2_ = 1;
  5.    while(_loc2_ <= blockAcroN)
  6.    {
  7.       blockArr[_loc2_] = new Array();
  8.       var _loc1_ = 1;
  9.       while(_loc1_ <= blockVertN)
  10.       {
  11.          blockArr[_loc2_][_loc1_] = "no";
  12.          _loc1_ = _loc1_ + 1;
  13.       }
  14.       _loc2_ = _loc2_ + 1;
  15.    }
  16.    game_score = 0;
  17.    dep = 1;
  18.    chareMake();
  19. }
  20. function reStartReadyF()
  21. {
  22.    nowF = "noting";
  23.    round++;
  24.    backN = round % 3 != 0 ? round % 3 : 3;
  25.    _root.back_mc.gotoAndStop(backN);
  26.    dep = 1;
  27.    _root.roundClearSound.stop();
  28.    delete _root.roundClearSound;
  29.    _root.readySound.start();
  30.    ready_mc.gotoAndPlay(2);
  31. }
  32. function chareMake()
  33. {
  34.    userDreg = "no";
  35.    _root.blockMakeF();
  36.    nowTime = maxTime;
  37.    attachMovie("start","start_mc",dep++);
  38.    _root.start_mc._x = 200;
  39.    _root.start_mc._y = 150;
  40.    _root.startSound.start();
  41.    _root.start_mc.gotoAndPlay(2);
  42.    timeDn = 100 / parseInt(nowTime);
  43.    _root.heartMakeF();
  44. }
  45. function blockMakeF()
  46. {
  47.    this.createEmptyMovieClip("blockTotal_mc",dep++);
  48.    var _loc4_ = 1;
  49.    while(_loc4_ <= 4)
  50.    {
  51.       var _loc3_ = 1;
  52.       while(_loc3_ <= blockVertN)
  53.       {
  54.          blockTotal_mc.attachMovie("block_mc","block_" + _loc4_ + "_" + _loc3_,dep++);
  55.          blockArr[_loc4_][_loc3_] = random(4) + 1;
  56.          _root.blockTotal_mc["block_" + _loc4_ + "_" + _loc3_].gotoAndStop(blockArr[_loc4_][_loc3_] + "F");
  57.          if(blockArr[_loc4_][_loc3_] == 6)
  58.          {
  59.             _root.blockTotal_mc["block_" + _loc4_ + "_" + _loc3_].blHear_mc.gotoAndStop(random(4) + 1);
  60.          }
  61.          _root.blockTotal_mc["block_" + _loc4_ + "_" + _loc3_]._x = blockStartX + _loc4_ * 37;
  62.          _root.blockTotal_mc["block_" + _loc4_ + "_" + _loc3_]._y = blockStartY + _loc3_ * 37;
  63.          _loc3_ = _loc3_ + 1;
  64.       }
  65.       _loc4_ = _loc4_ + 1;
  66.    }
  67.    startBlockN = blockMaxN + 1;
  68.    blockMaxN += blockVertN;
  69. }
  70. function heartMakeF()
  71. {
  72.    _root.nextHeart_mc.removeMovieClip();
  73.    userDreg = "yes";
  74.    this.attachMovie("heart","heart_mc",500001);
  75.    _root.heartKindN = _root.nextHeartKindN;
  76.    _root.heart_mc.gotoAndStop(_root.heartKindN + "F");
  77.    _root.heart_mc._x = heartX;
  78.    _root.heart_mc._y = heartY;
  79.    this.attachMovie("heart","nextHeart_mc",600003);
  80.    colorArr = new Array();
  81.    var _loc4_ = 1;
  82.    while(_loc4_ <= blockAcroN)
  83.    {
  84.       var _loc3_ = 1;
  85.       while(_loc3_ <= blockVertN)
  86.       {
  87.          if(blockArr[_loc4_][_loc3_] == 1 || blockArr[_loc4_][_loc3_] == 2 || blockArr[_loc4_][_loc3_] == 3 || blockArr[_loc4_][_loc3_] == 4)
  88.          {
  89.             colorArr.push(blockArr[_loc4_][_loc3_]);
  90.          }
  91.          _loc3_ = _loc3_ + 1;
  92.       }
  93.       _loc4_ = _loc4_ + 1;
  94.    }
  95.    if(colorArr.length >= 1)
  96.    {
  97.       _root.nextHeartKindN = colorArr[random(colorArr.length - 1)];
  98.    }
  99.    else
  100.    {
  101.       _root.nextHeartKindN = random(4) + 1;
  102.    }
  103.    _root.nextHeart_mc.gotoAndStop(_root.nextHeartKindN + "F");
  104.    _root.nextHeart_mc._x = nextHeartX;
  105.    _root.nextHeart_mc._y = nextHeartY;
  106. }
  107. function heartTrowF(heTrX, heTrY)
  108. {
  109.    function throwSetF()
  110.    {
  111.       var _loc3_ = 0;
  112.       while(_loc3_ < 100)
  113.       {
  114.          mu = _loc3_ / 100;
  115.          mum1 = 1 - mu;
  116.          mum13 = mum1 * mum1 * mum1;
  117.          mu3 = mu * mu * mu;
  118.          x = mum13 * p1._x + 3 * mu * mum1 * mum1 * control._x + 3 * mu * mu * mum1 * control2._x + mu3 * p2._x;
  119.          y = mum13 * p1._y + 3 * mu * mum1 * mum1 * control._y + 3 * mu * mu * mum1 * control2._y + mu3 * p2._y;
  120.          _loc3_ = _loc3_ + 1;
  121.       }
  122.       var _loc4_ = 50;
  123.       if(currentPointCount < _loc4_)
  124.       {
  125.          amu = currentPointCount / _loc4_;
  126.          amum1 = 1 - amu;
  127.          amum13 = amum1 * amum1 * amum1;
  128.          amu3 = amu * amu * amu;
  129.          xPos = amum13 * startX + 3 * amu * amum1 * amum1 * controlX + 3 * amu * amu * amum1 * controlX2 + amu3 * endX;
  130.          yPos = amum13 * startY + 3 * amu * amum1 * amum1 * controlY + 3 * amu * amu * amum1 * controlY2 + amu3 * endY;
  131.          var _loc5_ = Math.atan2(mc._x - xPos,mc._y - yPos);
  132.          var _loc6_ = (- 180 * _loc5_) / 3.141592653589793;
  133.          mc._x = xPos;
  134.          mc._y = yPos;
  135.          currentPointCount++;
  136.       }
  137.       else
  138.       {
  139.          clearInterval(throwInter);
  140.          if(heTrX > 0 && heTrX < 8 && heTrY > 0 && heTrY < 9)
  141.          {
  142.             mc._x = blockStartX + heTrX * 37;
  143.             mc._y = blockStartY + heTrY * 37;
  144.             delete this.onEnterFrame;
  145.             _root.blockHitF(heTrX,heTrY);
  146.          }
  147.          else
  148.          {
  149.             mc._x = blockStartX + heTrX * 37;
  150.             mc._y = blockStartY + heTrY * 37;
  151.             delete this.onEnterFrame;
  152.             _root.lineTurnF();
  153.          }
  154.          currentPointCount = 0;
  155.       }
  156.       updateAfterEvent();
  157.    }
  158.    throwVis = "yes";
  159.    _root.line_mc.gotoAndPlay("trowF");
  160.    mc = _root.heart_mc;
  161.    mc._x = 311.4;
  162.    mc._y = 133;
  163.    startX = mc._x;
  164.    startY = mc._y;
  165.    var endX = blockStartX + heTrX * 37;
  166.    var endY = blockStartY + heTrY * 37;
  167.    controlX = startX;
  168.    controlX2 = endX + (startX - endX) / 3;
  169.    if(endY < startY)
  170.    {
  171.       controlY = controlY2 = endY - 50;
  172.    }
  173.    else
  174.    {
  175.       controlY = controlY2 = startY - 50;
  176.    }
  177.    var x;
  178.    var y;
  179.    var xPos;
  180.    var yPos;
  181.    currentPointCount = 0;
  182.    throwInter = setInterval(throwSetF,1);
  183. }
  184. function blockHitF(Yn, Xn)
  185. {
  186.    if(_root.heartKindN == blockArr[Yn][Xn])
  187.    {
  188.       _root.blockHitSound.start();
  189.       _root.gameScoreF();
  190.       blockArr[Yn][Xn] = "no";
  191.       _root.heart_mc.removeMovieClip();
  192.       _root.blockTotal_mc["block_" + Yn + "_" + Xn].gotoAndPlay("hideF");
  193.       _root.blockRemoveF(Yn,Xn);
  194.       blockReInter = setInterval(blockPropF,200);
  195.    }
  196.    else if(blockArr[Yn][Xn] == boomN)
  197.    {
  198.       _root.boomSound.start();
  199.       _root.gameScoreF();
  200.       blockArr[Yn][Xn] = "no";
  201.       _root.heart_mc.removeMovieClip();
  202.       _root.blockTotal_mc["block_" + Yn + "_" + Xn].gotoAndPlay("hideF");
  203.       _root.boomRemovF(Yn,Xn);
  204.       blockReInter = setInterval(blockPropF,200);
  205.    }
  206.    else if(blockArr[Yn][Xn] == 6)
  207.    {
  208.       _root.heartHitSound.start();
  209.       nowFraN = _root.blockTotal_mc["block_" + Yn + "_" + Xn].blHear_mc._currentframe;
  210.       _root.blockTotal_mc["block_" + Yn + "_" + Xn].blHear_mc.gotoAndStop(nowFraN);
  211.       _root.heart_mc.removeMovieClip();
  212.       _root.heartAllChageF(nowFraN);
  213.    }
  214.    else
  215.    {
  216.       _root.lineTurnF();
  217.    }
  218. }
  219. function heartAllChageF(heartAllN)
  220. {
  221.    var _loc3_ = 1;
  222.    while(_loc3_ <= blockVertN)
  223.    {
  224.       var _loc2_ = 1;
  225.       while(_loc2_ <= blockVertN)
  226.       {
  227.          if(blockArr[_loc2_][_loc3_] != "no" && blockArr[_loc2_][_loc3_] != undefined)
  228.          {
  229.             blockArr[_loc2_][_loc3_] = heartAllN;
  230.             _root.blockTotal_mc["block_" + _loc2_ + "_" + _loc3_].gotoAndStop(heartAllN + "F");
  231.          }
  232.          _loc2_ = _loc2_ + 1;
  233.       }
  234.       _loc3_ = _loc3_ + 1;
  235.    }
  236.    _root.lineTurnF();
  237. }
  238. function boomRemovF(y, x)
  239. {
  240.    if(x > 0)
  241.    {
  242.       if(blockArr[y][x - 1] != "no" && blockArr[y][x - 1] != undefined)
  243.       {
  244.          _root.gameScoreF();
  245.          blockArr[y][x - 1] = "no";
  246.          _root.blockTotal_mc["block_" + y + "_" + (x - 1)].gotoAndPlay("hideF");
  247.       }
  248.    }
  249.    if(x <= blockVertN)
  250.    {
  251.       if(blockArr[y][x + 1] != "no" && blockArr[y][x + 1] != undefined)
  252.       {
  253.          _root.gameScoreF();
  254.          blockArr[y][x + 1] = "no";
  255.          _root.blockTotal_mc["block_" + y + "_" + (x + 1)].gotoAndPlay("hideF");
  256.       }
  257.    }
  258.    if(y > 0)
  259.    {
  260.       if(blockArr[y - 1][x] != "no" && blockArr[y - 1][x] != undefined)
  261.       {
  262.          _root.gameScoreF();
  263.          blockArr[y - 1][x] = "no";
  264.          _root.blockTotal_mc["block_" + (y - 1) + "_" + x].gotoAndPlay("hideF");
  265.       }
  266.       if(x <= blockVertN)
  267.       {
  268.          if(blockArr[y - 1][x + 1] != "no" && blockArr[y - 1][x + 1] != undefined)
  269.          {
  270.             _root.gameScoreF();
  271.             blockArr[y - 1][x + 1] = "no";
  272.             _root.blockTotal_mc["block_" + (y - 1) + "_" + (x + 1)].gotoAndPlay("hideF");
  273.          }
  274.       }
  275.       if(x > 0)
  276.       {
  277.          if(blockArr[y - 1][x - 1] != "no" && blockArr[y - 1][x - 1] != undefined)
  278.          {
  279.             _root.gameScoreF();
  280.             blockArr[y - 1][x - 1] = "no";
  281.             _root.blockTotal_mc["block_" + (y - 1) + "_" + (x - 1)].gotoAndPlay("hideF");
  282.          }
  283.       }
  284.    }
  285.    if(y <= blockAcroN)
  286.    {
  287.       if(blockArr[y + 1][x] != "no" && blockArr[y + 1][x] != undefined)
  288.       {
  289.          _root.gameScoreF();
  290.          blockArr[y + 1][x] = "no";
  291.          _root.blockTotal_mc["block_" + (y + 1) + "_" + x].gotoAndPlay("hideF");
  292.       }
  293.       if(x > 0)
  294.       {
  295.          if(blockArr[y + 1][x - 1] != "no" && blockArr[y + 1][x - 1] != undefined)
  296.          {
  297.             _root.gameScoreF();
  298.             blockArr[y + 1][x - 1] = "no";
  299.             _root.blockTotal_mc["block_" + (y + 1) + "_" + (x - 1)].gotoAndPlay("hideF");
  300.          }
  301.       }
  302.       if(x <= blockVertN)
  303.       {
  304.          if(blockArr[y + 1][x + 1] != "no" && blockArr[y + 1][x + 1] != undefined)
  305.          {
  306.             _root.gameScoreF();
  307.             blockArr[y + 1][x + 1] = "no";
  308.             _root.blockTotal_mc["block_" + (y + 1) + "_" + (x + 1)].gotoAndPlay("hideF");
  309.          }
  310.       }
  311.    }
  312. }
  313. function blockRemoveF(y, x)
  314. {
  315.    if(blockArr[y][x - 1] == _root.heartKindN && x > 0)
  316.    {
  317.       _root.gameScoreF();
  318.       blockArr[y][x - 1] = "no";
  319.       _root.blockTotal_mc["block_" + y + "_" + (x - 1)].gotoAndPlay("hideF");
  320.       blockRemoveF(y,x - 1);
  321.    }
  322.    if(blockArr[y][x + 1] == _root.heartKindN && x <= blockVertN)
  323.    {
  324.       _root.gameScoreF();
  325.       blockArr[y][x + 1] = "no";
  326.       _root.blockTotal_mc["block_" + y + "_" + (x + 1)].gotoAndPlay("hideF");
  327.       blockRemoveF(y,x + 1);
  328.    }
  329.    if(blockArr[y - 1][x] == _root.heartKindN && y > 0)
  330.    {
  331.       _root.gameScoreF();
  332.       blockArr[y - 1][x] = "no";
  333.       _root.blockTotal_mc["block_" + (y - 1) + "_" + x].gotoAndPlay("hideF");
  334.       blockRemoveF(y - 1,x);
  335.    }
  336.    if(blockArr[y + 1][x] == _root.heartKindN && y <= blockAcroN)
  337.    {
  338.       _root.gameScoreF();
  339.       blockArr[y + 1][x] = "no";
  340.       _root.blockTotal_mc["block_" + (y + 1) + "_" + x].gotoAndPlay("hideF");
  341.       blockRemoveF(y + 1,x);
  342.    }
  343. }
  344. function blockPropF()
  345. {
  346.    clearInterval(blockReInter);
  347.    var _loc2_ = 1;
  348.    while(_loc2_ <= blockVertN)
  349.    {
  350.       var _loc5_ = 1;
  351.       while(_loc5_ <= blockVertN)
  352.       {
  353.          if(blockArr[_loc5_][_loc2_] == "no")
  354.          {
  355.             onelineArr = new Array();
  356.             var _loc4_ = _loc5_;
  357.             while(_loc4_ <= blockVertN)
  358.             {
  359.                if(blockArr[_loc4_][_loc2_] != "no" && blockArr[_loc4_][_loc2_] != undefined)
  360.                {
  361.                   onelineArr.push(_loc4_);
  362.                   onelineArr.push(blockArr[_loc4_][_loc2_]);
  363.                }
  364.                _loc4_ = _loc4_ + 1;
  365.             }
  366.             reN = 0;
  367.             var _loc3_ = _loc5_;
  368.             while(_loc3_ <= blockVertN)
  369.             {
  370.                if(onelineArr[reN] != undefined)
  371.                {
  372.                   newN = onelineArr[reN];
  373.                   blockArr[_loc3_][_loc2_] = onelineArr[++reN];
  374.                   chN = newN - _loc3_;
  375.                   _root.blockTotal_mc["block_" + newN + "_" + _loc2_]._x -= chN * 37;
  376.                   _root.blockTotal_mc["block_" + newN + "_" + _loc2_]._name = "block_" + _loc3_ + "_" + _loc2_;
  377.                   reN++;
  378.                }
  379.                else
  380.                {
  381.                   blockArr[_loc3_][_loc2_] = "no";
  382.                }
  383.                _loc3_ = _loc3_ + 1;
  384.             }
  385.             break;
  386.          }
  387.          _loc5_ = _loc5_ + 1;
  388.       }
  389.       _loc2_ = _loc2_ + 1;
  390.    }
  391.    binBlockArr = new Array();
  392.    var _loc7_ = 1;
  393.    while(_loc7_ <= blockAcroN)
  394.    {
  395.       var _loc6_ = 1;
  396.       while(_loc6_ <= blockVertN)
  397.       {
  398.          if(blockArr[_loc7_][_loc6_] != "no" && blockArr[_loc7_][_loc6_] != undefined)
  399.          {
  400.             binBlockArr.push(blockArr[_loc7_][_loc6_]);
  401.          }
  402.          _loc6_ = _loc6_ + 1;
  403.       }
  404.       _loc7_ = _loc7_ + 1;
  405.    }
  406.    if(binBlockArr.length > 0)
  407.    {
  408.       _root.lineTurnF();
  409.    }
  410.    else
  411.    {
  412.       clearInterval(blockTimeInter);
  413.       ui_mc.timer_mc.in_mc._xscale = 0;
  414.       newLineVis = "yse";
  415.       newBlockInter = setInterval(newBlockMakeF,200);
  416.    }
  417. }
  418. function turnF()
  419. {
  420.    clearInterval(turnInter);
  421.    _root.heart_mc.removeMovieClip();
  422.    if(endVis == "no")
  423.    {
  424.       _root.heartMakeF();
  425.    }
  426.    throwVis = "no";
  427. }
  428. function startGame()
  429. {
  430.    nowF = "main";
  431.    if(soundon == "yes")
  432.    {
  433.       _root.backSound = new Sound(this);
  434.       _root.backSound.attachSound("backSoundM");
  435.    }
  436.    _root.backSound.start(0,999);
  437.    blockTimeInter = setInterval(interTimeF,500);
  438.    gameEnd = "no";
  439. }
  440. function reStart()
  441. {
  442.    sendN = random(3) + 1;
  443.    gameEnd = "no";
  444. }
  445. function interTimeF()
  446. {
  447.    nowTime--;
  448.    if(nowTime == 0)
  449.    {
  450.       clearInterval(blockTimeInter);
  451.       ui_mc.timer_mc.in_mc._xscale = 0;
  452.       newLineVis = "yse";
  453.       if(throwVis == "no")
  454.       {
  455.          _root.newBlockMakeF();
  456.       }
  457.    }
  458.    else
  459.    {
  460.       ui_mc.timer_mc.in_mc._xscale = parseInt(nowTime) * timeDn;
  461.    }
  462. }
  463. function lineTurnF()
  464. {
  465.    if(newLineVis == "no")
  466.    {
  467.       turnInter = setInterval(turnF,150);
  468.    }
  469.    else
  470.    {
  471.       newBlockMakeF();
  472.    }
  473. }
  474. function newBlockMakeF()
  475. {
  476.    clearInterval(newBlockInter);
  477.    endVis = "no";
  478.    var _loc3_ = blockAcroN;
  479.    while(_loc3_ >= 1)
  480.    {
  481.       var _loc2_ = 1;
  482.       while(_loc2_ <= blockVertN)
  483.       {
  484.          if(blockArr[_loc3_][_loc2_] != "no" && blockArr[_loc3_][_loc2_] != undefined)
  485.          {
  486.             if(_loc3_ == blockAcroN)
  487.             {
  488.                endVis = "yes";
  489.             }
  490.             mc = _root.blockTotal_mc["block_" + _loc3_ + "_" + _loc2_];
  491.             blockArr[_loc3_ + 1][_loc2_] = blockArr[_loc3_][_loc2_];
  492.             _root.blockTotal_mc["block_" + _loc3_ + "_" + _loc2_]._name = "block_" + (_loc3_ + 1) + "_" + _loc2_;
  493.             mc._x += 37;
  494.          }
  495.          _loc2_ = _loc2_ + 1;
  496.       }
  497.       _loc3_ = _loc3_ - 1;
  498.    }
  499.    a = 1;
  500.    var _loc4_ = 1;
  501.    while(_loc4_ <= blockVertN)
  502.    {
  503.       blockTotal_mc.attachMovie("block_mc","block_" + a + "_" + _loc4_,dep++);
  504.       afBlockN = random(6) + 1;
  505.       if(afBlockN == 6)
  506.       {
  507.          blockArr[a][_loc4_] = random(6) != 1 ? random(4) + 1 : 6;
  508.       }
  509.       else if(afBlockN == 5)
  510.       {
  511.          blockArr[a][_loc4_] = random(6) != 1 ? random(4) + 1 : 5;
  512.       }
  513.       else
  514.       {
  515.          blockArr[a][_loc4_] = afBlockN;
  516.       }
  517.       if(blockArr[a][_loc4_] == 6)
  518.       {
  519.          _root.blockTotal_mc["block_" + a + "_" + _loc4_].blHear_mc.gotoAndStop(random(4) + 1);
  520.       }
  521.       _root.blockTotal_mc["block_" + a + "_" + _loc4_].gotoAndStop(blockArr[a][_loc4_] + "F");
  522.       _root.blockTotal_mc["block_" + a + "_" + _loc4_]._x = blockStartX + a * 37;
  523.       _root.blockTotal_mc["block_" + a + "_" + _loc4_]._y = blockStartY + _loc4_ * 37;
  524.       _loc4_ = _loc4_ + 1;
  525.    }
  526.    if(endVis == "yes")
  527.    {
  528.       clearInterval(throwInter);
  529.       clearInterval(heartInter);
  530.       Mouse.removeListener(mouseListener);
  531.       _root.userDreg = "no";
  532.       _root.user_mc.gotoAndStop("waitF");
  533.       _root.user_mc.stopDrag();
  534.       _root.lineDrawSound.stop();
  535.       delete _root.lineDrawSound;
  536.       gameOverInter = setInterval(gameOverF,3000);
  537.    }
  538.    else
  539.    {
  540.       if(hanlineN > 8)
  541.       {
  542.          nowTime = maxTime - 50;
  543.       }
  544.       else if(hanlineN > 4)
  545.       {
  546.          nowTime = maxTime - 40;
  547.       }
  548.       else
  549.       {
  550.          nowTime = maxTime - 30;
  551.       }
  552.       timeDn = 100 / parseInt(nowTime);
  553.       hanlineN++;
  554.       if(hanlineN > 4)
  555.       {
  556.          gameDan++;
  557.       }
  558.       blockTimeInter = setInterval(interTimeF,500);
  559.    }
  560.    newLineVis = "no";
  561.    if(throwVis == "yes")
  562.    {
  563.       _root.turnF();
  564.    }
  565. }
  566. function gameScoreF()
  567. {
  568.    game_score += 10 * gameDan;
  569. }
  570. function gameOverF()
  571. {
  572.    clearInterval(blockTimeInter);
  573.    clearInterval(throwInter);
  574.    clearInterval(heartInter);
  575.    Mouse.removeListener(mouseListener);
  576.    _root.userDreg = "no";
  577.    _root.user_mc.gotoAndStop("waitF");
  578.    _root.user_mc.stopDrag();
  579.    _root.lineDrawSound.stop();
  580.    delete _root.lineDrawSound;
  581.    nowF = "noting";
  582.    _root.backSound.stop();
  583.    delete _root.backSound;
  584.    clearInterval(gameOverInter);
  585.    canvas_mc.clear();
  586.    canvas2_mc.clear();
  587.    _root.user_mc.removeMovieClip();
  588.    _root.heart_mc.removeMovieClip();
  589.    _root.blockTotal_mc.removeMovieClip();
  590.    _root.demo_clip.removeMovieClip();
  591.    removeMovieClip(_root.start_mc);
  592.    _root.gameOverSound.start();
  593.    _root.gotoAndStop("gameOver");
  594. }
  595. function titleMoveF()
  596. {
  597.    _root.gameOverSound.stop();
  598.    _root.gameOver_mc.removeMovieClip();
  599.    _root.heart_mc.removeMovieClip();
  600.    _root.next_mc.removeMovieClip();
  601.    _root.ui_mc.removeMovieClip();
  602.    _root.nextHeart_mc.removeMovieClip();
  603.    gotoAndStop("titleF");
  604.    play();
  605. }
  606. demo_clip.swapDepths(600200);
  607. nowF = "noting";
  608. _root.titleSound.stop();
  609. delete _root.titleSound;
  610. _root.readySound.start();
  611. _root.next_mc.gotoAndStop(1);
  612. attachMovie("ui","ui_mc",20000);
  613. _root.ui_mc._x = 197.9;
  614. _root.ui_mc._y = 13.6;
  615. userLocaX = 293.3;
  616. userLocaY = 100;
  617. blockStartX = -18.5;
  618. blockStartY = -16;
  619. newBlockStartX = -55.5;
  620. newBlockStartY = -53;
  621. heartX = 298.4;
  622. heartY = 133;
  623. nextHeartX = 365.9;
  624. nextHeartY = 238.3;
  625. blockPuchCountN = 30;
  626. startBlockN = 1;
  627. blockAcroN = 7;
  628. blockVertN = 8;
  629. blockMaxN = blockAcroN * blockVertN;
  630. maxTime = 60;
  631. hanlineN = 0;
  632. gameDan = 1;
  633. user_mc.swapDepths(500010);
  634. title_mc.swapDepths(300000);
  635. next_mc.swapDepths(600000);
  636. _root.nextHeartKindN = random(4) + 1;
  637. boomN = 5;
  638. throwVis = "no";
  639. newLineVis = "no";
  640. endVis = "no";
  641.